﻿using System;
using System.Windows.Forms;

namespace CefDemo.cef
{
    public abstract class AbstractBindObject<T> where T : Control
    {
        public T control { private set; get; }

        public AbstractBindObject(T control)
        {
            this.control = control;
        }

        public void RunOnUI(Action action)
        {
            control.InvokeOnUiThreadIfRequired(action);
        }
    }
}
